import request from '@/utils/request'

// 查询功能列表
export function listFunctional(query) {
  return request({
    url: '/fpa/functional/list',
    method: 'get',
    params: query
  })
}

// 查询功能详细
export function getFunctional(id) {
  return request({
    url: '/fpa/functional/' + id,
    method: 'get'
  })
}

// 新增功能
export function addFunctional(data) {
  return request({
    url: '/fpa/functional',
    method: 'post',
    data: data
  })
}

// 修改功能
export function updateFunctional(data) {
  return request({
    url: '/fpa/functional',
    method: 'put',
    data: data
  })
}

// 删除功能
export function delFunctional(id) {
  return request({
    url: '/fpa/functional/' + id,
    method: 'delete'
  })
}
